Files to Shadow: (Shadow Set)
This window defines the data you want to co-ordinate and/or backup.  The Shadow Set comprises a number of lines where each line represents a file or set of files within a folder structure.  It is strongly recommended that, if your backup and co-ordination requirements are complex, you construct your Shadow Set one line at a time, performing a test run after each line is added.  If you are shadowing to a network drive then please discuss your intentions with your network administrator and make sure you have enough space allocated to you to contain all the files you intend to shadow.  If a drive or drive allocation becomes full then you will get a warning message. 
The following examples show how you can construct a Shadow Set for backup and for co-ordination:
Note that there are two ways to view your Shadow Set specifications, Text view and Grid view. You can switch between the two by changing the Text view check box at the top of the form. All examples (shown in red) are Text view examples.

Each Shadow Set line takes the form of:
File path and name specification /optional control switches

Backup examples
c:\My Documents\*.*  /s	(where "My Documents" represents your data folder and /s means include all subfolders)
h:\*.*  /s              		(where h: represents your folder on the server)
\\Server01\data\*.*  /s	(shows the use of network notation)

Other examples:
c:\config.sys			includes only the specified file.
c:\My Documents\*.doc	includes all doc files in c:\My Documents folder only.
c:\My Documents\*.doc /s	includes all doc files in c:\My Documents folder and it's sub folders.
c:\My Documents\*.* /s	includes all files in c:\My Documents directory and it's sub folders.
h:\*.* /s /r This line backs up my network "h" drive - note the use of the /r remark switch.
;h:\*.* /s /r This line has been disabled by prefixing it with a semi-colon.
c:\%UserFiles%\*.* /s	You can insert Windows Environment Variables anywhere in the spec surrounded by % characters.

Optional control switches overview:
These add functionality and control the timing on individual Spec Set lines.
Use "/s" to include all sub folders.
Use "/z" to save the shadow file as a compressed zip file.
Use "/c" to include only changed and new files, optionally from a given date.
Use "/t"  to include the line only in time scheduled runs.
Use "/t=hh:mm" to run at the specified time.
Use "/w" to run only on the specified week day.
Use "/v" to save the old versions of your files.
Use "/x" to exclude files from shadowing (but see next help screen first).
Use "/d" to specify a different shadow folder to the default.
Use "/backup" or "/2Way" or "/briefcase" to override the default shadow mode.
Use "/m" to shadow files up to a maximum size.
Use "/q" to query all shadow files over a specified size.
Use "/n=" to include the line only when the named volume is mounted.
Use "/n+" to include the line only when the named volume is mounted and store the line on the volume.
Use the "/a"  switch to close and launch other applications.
Use the "/r"  switch to add remarks.

Use the Spec Builder to help you to construct your shadow set.

Optional control switches in detail:

"/z" Zip flag
Use the /z flag to save the shadow file as a compressed zip file.  For example:
c:\My Documents\*.*  /s /z 
Compressing files can save disk space on your server or removable backup device.
Compressed files are saved as follows:
Assuming you are shadowing to your d:\Shadow folder:
c:\My documents\Document1.doc will be backed up to d:\Shadow\c\MyDocuments\Document1.doc.zip
Notice that a ".zip" suffix is added and the original file extension is retained for reference.

A popular use for Shadow is to work in the office, shadow your files to a Zip disk then work on them at home.
Shadow's zip feature has been designed with this 2 way shadowing in mind so files in the office and at home are not compressed and can be used normally, but the files shadowed to the Zip drive are compressed saving space. Using Shadow's 2WayIdentical mode, all new files, changes and deletes are correctly managed. Shadow compresses and uncompresses files as necessary.

"/x" Exclusion flag:
Use the /x flag to exclude specific folders, files, file extensions and filename phrases.  For example:
h:\*.*/s	 		/r Backup my network drive
h:\BigFile.dat /x	/r Excluding this large mainframe extract file
h:\Temp\ /x		/r Excluding my network drive Temp folder
\Temp\  /x           	/r Exclude all \Temp\ folders wherever they are
If you want to completely exclude files of a certain type then don't use /x files, use the global 'Excluding:' feature instead (see the next help screen).

If you need to restrict the scope of an exclusions to a particular named volume you can combine the /x and /n control switches. For example, the following exclusions will apply only when the volume named ZIP1 is mounted.
\Temp\  /x /n=ZIP1 
*.tmp  /x  /n=ZIP1 

If you need to restrict the scope of the exclusion to a specific destination folder structure you can combine the /x and /d switches. For example, the following exclusion will apply only when the destination drive is e:\
\Temp\  /x /d=e:\ 

Note that file name extension and phrase exclusions normally only apply to shadow specification lines which use the *.* wildcard eg.
c:\My Documents\*.*  /s    
If you need to extend an exclusion to cover other lines such as:
c:\My Documents\*  /s 
then suffix it with /x+
For example:
*.tmp  /x+   will exclude .tmp files from being shadowed by all spec lines except those explicitly stating the file extension such as c:\My Documents\Readme.tmp and c:\My Documents\*.tmp

Server Co-ordination
Shadow automatically ensures that the very latest copies of all files exist on both your network Server and on your own PC.

To use the co-ordination facility for all your data, use the 2Way Transfer Shadow Mode as the default.  Alternatively, you can use 2Way Transfer Mode on a line by line basis.  Use the spec builder to construct a line similar to the following example:
c:\My Documents\*.* /s /d=\\Server01\c-drive\SolarSys\My Documents  /2Way

As new files are added or existing files amended on either the PC or the server this specification will simultaneously replicate these files and folder structures on the other device.

2Way Transfer replicates all files and folders defined in the specification line.  You can limit the 2 way replication to only those that exist on the Shadow Set ie c:\My Documents\*.* /s in the above example by using the 2Way Briefcase Mode eg:
c:\My Documents\*.* /s /d=\\Server01\c-drive\SolarSys\My Documents  /Briefcase

2Way Identical is a more advanced 2Way transfer mode that supports the deletion and re-naming of files and folders on both source and destination drives. See the spec builder's help for more details.
c:\My Documents\*.* /s /d=\\Server01\c-drive\SolarSys\My Documents  /2WayIdentical

Important note: If your server does not support long filenames then you must specify the destination folder with a drive letter or alternatively add /16 to the specification line as in the following examples:
either:
c:\My Documents\*.* /s /d=h:\SolarSys\MyDocs /Backup
or
c:\My Documents\*.* /s /d=\\Server01\c-drive\SolarSys\MyDocs /Backup /16
will work.
If you want to use /2Way file co-ordination with a server that only supports short file names then you must ensure that all folders in the folder paths you are co-ordinating are short names. For example:
c:\MyDocs\*.* /s /d=h:\SolarSys\MyDocs /2Way

Preventing files from shadowing over a slow remote connection:
If you sometimes connect to your server over a slow remote dial up connection you can prevent files from being shadowed while you are connected by using the  /e control switch.
The following two examples will be excluded from shadow runs if a remote connection is open. 
\\Server01\data\*.*  /s /e
h:\*.* /s /e 

Advanced Features

Old Versions:
A unique feature is the ability to save old versions of your files. This is particularly useful if you regularly make changes to the same files.  If you make a mistake you can then retrieve the previous version.  Shadow can store up to 9 old versions on your source and/or shadow drives.  This will get you out of trouble time and time again!  Use the Spec Builder to add this feature to each spec line as required.

Maximum size:
You can prevent large files from being shadowed either by default by using the "Max size MB:" facility or on individual lines by using the  /m control switch.
For example 
c:\My Documents\*.*  /s  /m=3  /rem will not include any files > 3Mb 
Note that the /m control switch does not use the default Max size Mb field's check box.

Queries:
You can prevent files from being automatically shadowed by using the  /q control switch.
For example 
c:\My Documents\*.*  /s  /q>0.5  /rem will display all files greater than 0.5Mb in a queries list box.
c:\My Documents\*.*  /s  /q>0     /rem will display all files in the queries list box.
You can then select the files you want to shadow from the list then press the Run Now button to commit your choices. 
To see more details, click on any line in the queries list. You also get the opportunity to "Reverse Shadow" if you need to copy the older version over the newer.
An alternative to the /q control switch is to use the option "Query all files".

Running other applications:
Shadow has an additional feature in that it can execute other programs before or after a shadow run by using the "/a" switch in a line similar to the following examples:

/a=notepad.exe 
The above line (with an = sign) launches notepad after each successful run where no warnings occurred.
You may need to provide the full path to the application.
/a=c:\Windows\notepad.exe

/a+notepad.exe 
The above line (with a + sign) launches notepad after each run even if there were warnings.

/a#notepad.exe
The above line (with a # sign) launches notepad after each run only if there were files successfully shadowed during the run.

/a!notepad.exe,c:\readme.txt  
The above line (with a ! sign) launches notepad and opens file c:\readme.txt after each run only if there were warnings during the run.

/a-notepad.exe,c:\readme.txt  /t=09:15 /w=Monday
The above line (with a - sign) launches notepad without performing a time scheduled Shadow run (at 09:15 on Mondays in this example).

Note that /a can optionally pass a document filename as a parameter as long as it is separated from the application filename by a comma.

Sometimes you need to close an application before you backup it's data. A good example is email. If you do not close Microsoft Outlook Express then the folder you are viewing does not get backed up because it is locked by Outlook Express. Shadow can automatically close the application then optionally re-open it after the backup run.
Examples:

/a<Outlook Express
The above line (with a < sign) closes Outlook Express. To close an application, you must provide all or part of it's title bar caption as the parameter.

/a>Outlook Express,c:\Program files\Outlook Express\msimn.exe
The above line (with a > sign) closes Outlook Express then re-launches it after the run. Again, you must provide all or part of the closing application's title as the first parameter then a comma followed by the full path and file name of the application you want to launch after the backup run.

Total control over your schedules
Shadow is a very flexible scheduler!
You can schedule any backup, co-ordination task or application launch for any minute of any day of the week by using the "/t=" and "/w=" switches.

C:\Program Files\Outlook Express\Mail\*.* /s /t=13:15 /a>Outlook Express,C:\Program Files\Outlook Express\msimn.exe
This line closes Outlook Express every day at lunch time, backs up the email files then re-launches Outlook Express when the backup has finished.

/a=c:\delfiles.bat /t=16:45 /w=Friday 
This line runs file c:\delfiles.bat at 16:45 on Fridays only (delfiles.bat is a batch file which deletes files at the end of the week after they have successfully been backed up to my PD/CD ROM drive).

For the /t= switch your time must be specified in 24 hour notation. For example 09:30 and 21:05 (also note that you must use leading zeros for numbers less than 10 and that the hours and minutes must be separated by a ":" (colon).  The /t=hh:mm switch will only run at the specified time and will ignore other time scheduled runs. If you have other spec lines using /t without a specific time then they will run at the normal scheduled run times and not when your /t=hh:mm run occurs.

For the /w= switch you need only specify the first 3 characters of the day of week. For example /w=Monday, /w=mon and /W=MON will all work OK.